package com.ruiyian.project.log.service.impl;

import com.ruiyian.project.log.domain.OperationLog;
import com.ruiyian.project.log.mapper.OperationLogMapper;
import com.ruiyian.project.log.service.OperationLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chong
 * @email 673426164@qq.com
 * @create 2021/1/27
 * Desc: 操作日志实现
 */
@Slf4j
@Service
public class OperationLogServiceImpl implements OperationLogService {

    @Autowired
    private OperationLogMapper operationLogMapper;

    /**
     * 查询列表
     * @param operationLog
     * @return
     */
    @Override
    public List<OperationLog> selectList(OperationLog operationLog) {
        return operationLogMapper.selectList(operationLog);
    }

    /**
     * 批量保存
     * @param list
     */
    @Override
    public void batchSave(List<OperationLog> list) {
        operationLogMapper.batchSave(list);
    }
}
